/**
 * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.babble.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Null;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 博客文章表实体类
 *
 * @author Blade
 * @since 2021-11-19
 */
@Data
@TableName("babble_blog")
@ApiModel(value = "Blog对象", description = "博客文章表")
public class Blog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 博客标题
     */
	@ApiModelProperty(value = "博客标题")
    private String title;
    /**
     * 博客简介
     */
    @ApiModelProperty(value = "博客简介")
    private String summary;
    /**
     * 博客内容
     */
	@ApiModelProperty(value = "博客内容")
    private String content;
    /**
     * 博客文章id
     */
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private String id;
    /**
     * 博客点击数
     */
	@ApiModelProperty(value = "博客点击数")
    private Integer clickCount;
    /**
     * 博客收藏数
     */
	@ApiModelProperty(value = "博客收藏数")
    private Integer collectCount;
    /**
     * 推荐等级(0:正常)
     */
	@ApiModelProperty(value = "推荐等级(0:正常)")
    private Boolean level;
    /**
     * 排序字段
     */
	@ApiModelProperty(value = "排序字段")
    private Integer sort;
    /**
     * 是否展示：0：否，1：是
     */
	@ApiModelProperty(value = "是否展示：0：否，1：是")
    private Integer isShow;
    /**
     * 是否开启评论(0:否 1:是)
     */
	@ApiModelProperty(value = "是否开启评论(0:否 1:是)")
    private Boolean openComment;
    /**
     * 用户ID
     */
	@ApiModelProperty(value = "用户ID")
    private String userId;
    /**
     * 博客分类ID
     */
	@ApiModelProperty(value = "博客分类ID")
    private String blogCategoryId;
    /**
     * 标题图片id
     */
	@ApiModelProperty(value = "标题图片id")
    private String imgId;
    /**
     * 标签id
     */
    @ApiModelProperty(value = "标签id")
    private String tagId;

    private LocalDateTime createTime;
	private LocalDateTime updateTime;

}
